package com.cloud.sys.modules.app.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloud.sys.modules.app.entity.TokenEntity;
import org.apache.ibatis.annotations.Mapper;

/**
 * 用户Token
 * 
 * @author Liumingwei
 */
@Mapper
public interface TokenDao extends BaseMapper<TokenEntity> {
    TokenEntity getByToken(String token);

    TokenEntity getByUserId(Long userId);
}
